<?php 

include './Core/function.php';



 ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en">
 <head>
 	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
 	<title>文件上传</title>
 </head>
 <body>

 	<form action="Upload.php" method="post" enctype="multipart/form-data">
 		<input type="hidden" name="MAX_FILE_SIZE" value="3000000"> 
 		<!-- <input type="file" name="userfile"> -->
 		<input type="file" name="userfile[]" multiple="true">
 		<input type="submit" value="上传">

 	</form>

 	<style type="text/css">
		table{
			border: 1px solid red;
		}

		table img{
			width: 20px;
			height: 20px;
		}

 	</style>

 	<table>
 		<tr>
 			<td>文件</td>
 			<td>名字</td>
 			<td>时间</td>
 			<td>大小</td>
 			<td>下载</td>
 			<td>删除</td>
 		</tr>
		<?php 

		$flieList = glob('./Upload/*');

		foreach ($flieList as $key => $value) { ?>

			<tr>
	 			<td><img src="<?php echo showimg($value); ?>" alt=""></td>
	 			<td><?php echo basename($value); ?></td>
	 			<td><?php echo date("Y-m-d H:i:s",filemtime($value)); ?></td>
	 			<td><?php echo F(filesize($value)); ?></td>
	 			<td><a href="./download.php?url=<?php echo $value; ?>">下载</a></td>
	 			<td><a href="./del.php?url=<?php echo $value; ?>">删除</a></td>
	 		</tr>
		<?php }?>
 		
 	</table>
 	
 </body>
 </html>